]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NotificationDaemon: fix fallout from db75734774e97f735b9d5da36ef04c7fa043b26d
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 11 Aug 2013 16:58:46 +0000 (18:58 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 11 Aug 2013 17:10:25 +0000 (19:10 +0200)
The public API of ShellAppSystem was changed, now both the desktop
and startup wmclass must be looked up.

https://bugzilla.gnome.org/show_bug.cgi?id=705801

js/ui/notificationDaemon.js

index 1a49827a013f8570c831036267e0f9ba135eea2d..de4271131fad5f6ed77bce8d119b9195031cca45 100644 (file)
@@ -734,7 +734,11 @@ const Source = new Lang.Class({
             return app;
 
         if (this.trayIcon) {
-            app = Shell.AppSystem.get_default().lookup_wmclass(this.trayIcon.wm_class);
+            app = Shell.AppSystem.get_default().lookup_startup_wmclass(this.trayIcon.wm_class);
+            if (app != null)
+                return app;
+
+            app = Shell.AppSystem.get_default().lookup_desktop_wmclass(this.trayIcon.wm_class);
             if (app != null)
                 return app;
         }